package com.qf.feign;

import com.qf.pojo.User;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 汤奇
 * @version V1.0
 * @Project BookPro
 * @Package com.qf.feign
 * @Description:
 * @Date 2022/7/6 20:45
 */
@Component
@RequestMapping("/searchFallBack")
public class SearchFeignFallBack implements SearchFeign{
    @Override
    public String test() {
        return "feign远程调用的时候出了点异常,请稍后再试";
    }

    @Override
    public User findUserById(Integer id) {
        return new User();
    }
}
